package com.danciyixue.boot.dcyx.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 系列信息表单对象
 *
 * @author youlaitech
 * @since 2025-06-15 16:29
 */
@Getter
@Setter
@Schema(description = "系列信息表单对象")
public class SeriesForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "系列ID")
    private Long id;

    @Schema(description = "父级ID,0表示无父级")
    @NotNull(message = "父级ID,0表示无父级不能为空")
    private Long semesterId;

    @Schema(description = "显示顺序")
    private Integer dispOrder;

    @Schema(description = "英文名称")
    @Size(max=128, message="英文名称长度不能超过128个字符")
    private String nameEnUs;

    @Schema(description = "简体中文名")
    @NotBlank(message = "简体中文名不能为空")
    @Size(max=128, message="简体中文名长度不能超过128个字符")
    private String nameZhCn;

    @Schema(description = "繁体中文名")
    @Size(max=128, message="繁体中文名长度不能超过128个字符")
    private String nameZhBig;

    @Schema(description = "系列类型")
    private Integer type;

    @Schema(description = "是否免费展示")
    private Integer showFree;

    @Schema(description = "内容描述")
    @Size(max=65535, message="内容描述长度不能超过65535个字符")
    private String content;

    @Schema(description = "创建人ID")
    private Long createUser;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "图片链接或路径")
    @Size(max=255, message="图片链接或路径长度不能超过255个字符")
    private String picture;


}
